x86/psr: remove invalid cpu_to_socket call
authorChao Peng <chao.p.peng@linux.intel.com>
Wed, 22 Jul 2015 12:15:37 +0000 (14:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Jul 2015 12:15:37 +0000 (14:15 +0200)
commitbc299d01b925d934219b6e8c29fadcd1f1a9210b
treefac1b4d3e7ebb75853ceff5910b4d23a1ec3f44e
parent23d72aaa0ccb206b0447b1efa9f1012f093162ee
x86/psr: remove invalid cpu_to_socket call

cpu_to_socket() can't give correct socket value in CPU_PREPARE notifier
as at that time phys_proc_id has not yet been initialized (the value is
its default 0 in this case) which is incorrect for sockets other than
socket 0.

cos_to_cbm now is pre-allocated in CPU_PREPARE notifier and then consumed
in CPU_STARTING notifier.

Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
xen/arch/x86/psr.c